package com.laicunba.service.accounting;

import java.math.BigDecimal;

import com.laicunba.pojo.UserDO;

public interface RewardBidService {
	public class BuyParam {
		private String userId;
		private BigDecimal buyAmount;
		private String tag;
		private UserDO inviteUser;
		private String registryId;
		private String targetId;

		public void setTargetId(String targetId) {
			this.targetId = targetId;
		}

		public String getTargetId() {
			return targetId;
		}

		public void setRegistryId(String registryId) {
			this.registryId = registryId;
		}

		public String getRegistryId() {
			return registryId;
		}

		public void setInviteUser(UserDO inviteUser) {
			this.inviteUser = inviteUser;
		}

		public UserDO getInviteUser() {
			return inviteUser;
		}

		public String getUserId() {
			return userId;
		}

		public BigDecimal getBuyAmount() {
			return buyAmount;
		}

		public String getTag() {
			return tag;
		}

		public void setUserId(String userId) {
			this.userId = userId;
		}

		public void setBuyAmount(BigDecimal buyAmount) {
			this.buyAmount = buyAmount;
		}

		public void setTag(String tag) {
			this.tag = tag;
		}

	}

	boolean doBuy(BuyParam buyParam);
}
